<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<style>
<!--
.form-horizontal .controls {
	margin-left: 1%;
}
.form-horizontal input[readonly] {
	cursor:pointer;
}
.form-horizontal .control-label{
	width:180px;
}
-->
</style>
<div class="span12 box-content" style=" margin-left: 0px;">
<c:if test="${user.superAdmin }">
	<form class="form-inline well" id="chooseSetFilter_form">
		<div class="controls controls-row">
			<label>学院:</label>
			<select class="span2" style="display:inline;" name="college">
			  <c:forEach items="${colleges }" var="c">
			 	 <option value="${c.id }" ${c.id==clgId?"selected='selected'":""}>${c.name }</option>
			  </c:forEach>
			</select>
			<button type="button" id="chooseSetFilter_go">前往</button>
		</div>
	</form>
	</c:if>
	<form class="form-horizontal span11" id="choose_set_update_form" >
	<input type="hidden" name="collegeId" value="${clgId }"/>
		<div class="control-group">
			<label class="control-label">学生选题起始时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="studentChooseTimeStart"  value='<fmt:formatDate value="${set.studentChooseTimeStart}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>	
		<div class="control-group">
			<label class="control-label">学生选题结束时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="studentChooseTimeEnd" value='<fmt:formatDate value="${set.studentChooseTimeEnd}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">教师题目提交起始时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="teacherEditTimeStart"  value='<fmt:formatDate value="${set.teacherEditTimeStart}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">教师题目提交结束时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="teacherEditTimeEnd"  value='<fmt:formatDate value="${set.teacherEditTimeEnd}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">教师题目附件提交起始时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="teacherUploadTimeStart" value='<fmt:formatDate value="${set.teacherUploadTimeStart}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">教师题目附件提交结束时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text"  name="teacherUploadTimeEnd" value='<fmt:formatDate value="${set.teacherUploadTimeEnd}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">教师录取志愿起始时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="teacherChooseTimeStart" value='<fmt:formatDate value="${set.teacherChooseTimeStart}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">每个志愿录取天数</label>
			<div class="controls input-append">
				<select name="teacherChooseEachTimeLength" >
					<c:forEach begin="1" end="5" var="i" >
						<option value="${i }" ${set.teacherChooseEachTimeLength==i?"selected":"" }>${i}</option>
					</c:forEach>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">中期检查起始时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="middleCheckTimeStart" value='<fmt:formatDate value="${set.middleCheckTimeStart}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">中期检查结束时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text"  name="middleCheckTimeEnd"  value='<fmt:formatDate value="${set.middleCheckTimeEnd}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">最终答辩开始时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="finalCheckTimeStart"  value='<fmt:formatDate value="${set.finalCheckTimeStart}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">最终答辩结束时间</label>
			<div class="controls input-append date form_datetime"  data-date-format="yyyy-mm-dd hh:ii">
				<input  type="text" name="finalCheckTimeEnd" value='<fmt:formatDate value="${set.finalCheckTimeEnd}" pattern="yyyy-MM-dd HH:mm"/>' readonly class="input-medium">
				<span class="add-on"><i class="icon-remove"></i></span>
				<span class="add-on"><i class="icon-th"></i></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">总志愿数</label>
			<div class="controls input-append" >
				<select name="totalLevelCount">
					<c:forEach begin="1" end="7" var="i" >
						<option value="${i }" ${set.totalLevelCount==i?"selected":"" }>${i}</option>
					</c:forEach>
				</select>
			</div>
		</div>		
		<div class="control-group">
			<label class="control-label">选题方式</label>
			<div class="controls input-append"  >
				<select name="chooseByProject">
					<option value="0" ${set.chooseByProject?"":"selected" }>按教师选</option>
					<option value="1" ${set.chooseByProject?"selected":"" }>按题目选</option>
				</select>
			</div>
		</div>
		<div class="form-actions">
			<button type="button" class="btn btn-primary"id="choose_set_update_form_save">保存</button>
			<button type="button" class="btn btn-info" onclick="history.go(0);">取消</button>
		</div>
	</form>
</div>